package com.simba.server.jsonservice.serivces;

import org.apache.log4j.Logger;
import org.jboss.netty.channel.Channel;
import com.simba.common.jsonservice.JsonService;
import com.simba.common.log.LogUtil;
import com.simba.server.components.SlotManager;

public class RenewTrashSlotJsonService implements JsonService
{
	public static final String NAME = "RenewTrashSlot";
	private final static Logger logger = Logger.getLogger(RenewTrashSlotJsonService.class);

	@Override
	public void handleRequest(Channel channel, Object content)
	{
		try
		{
			SlotManager.getInstance().initTrashSlots();
			LogUtil.LogDebug(RenewTrashSlotJsonService.logger,
					"Renew Trash Slot Json Service RenewTrashSlot.");
		}
		catch (Exception e)
		{
			LogUtil.LogError(RenewTrashSlotJsonService.logger,
					"Renew Trash Slot Json Service Error : exception info : ");
		}
	}

}
